package org.jeecg.modules.charge.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.entity.basedata.BaseFloor;
import org.jeecg.entity.basedata.BaseRoom;
import org.jeecg.modules.charge.entity.PayAccountConfig;
import org.jeecg.modules.charge.mapper.PayAccountConfigMapper;
import org.jeecg.modules.charge.service.IPayAccountConfigService;
import org.jeecg.modules.charge.vo.BaseProject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 支付分账配置表
 * @Author: jeecg-boot
 * @Date:   2021-02-28
 * @Version: V1.0
 */
@Service
public class PayAccountConfigServiceImpl extends ServiceImpl<PayAccountConfigMapper, PayAccountConfig> implements IPayAccountConfigService {

    @Autowired
    PayAccountConfigMapper payAccountConfigMapper;

    @Override
    public BaseProject getBaseProjectByName(String projectName) {
        return payAccountConfigMapper.getBaseProjectByName(projectName);
    }

    @Override
    public BaseFloor getBaseFloorByName(String floorName, String projectId) {
        return payAccountConfigMapper.getBaseFloorByName(floorName, projectId);
    }

    @Override
    public BaseRoom getBaseRoomByName(String roomName, String floorId) {
        return payAccountConfigMapper.getBaseRoomByName(roomName, floorId);
    }
}
